@charset "UTF-8";
/*============ header ============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--body-color);
  z-index: var(--z-fixed);
}

/*============ nav ============*/
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}
.nav-logo {
  display: flex;
  align-items: center;
  -moz-column-gap: 0.5rem;
       column-gap: 0.5rem;
  font-weight: var(--font-medium);
}
.nav-logo-img {
  width: 1.25rem;
}
.nav-link, .nav-logo, .nav-toggle, .nav-close {
  color: var(--title-color);
}
.nav-toggle {
  font-size: 1.25rem;
  cursor: pointer;
}
@media screen and (max-width: 767px) {
  .nav-menu {
    position: fixed;
    top: -150%;
    left: 0;
    width: 100%;
    padding: 3.5rem 0;
    background: var(--container-color);
    transition: top 0.6s;
    z-index: var(--z-fixed);
    border-radius: 0 0 1.5rem 1.5rem;
  }
}
.nav-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
}
.nav-close {
  position: absolute;
  top: 0.5rem;
  right: 0.7rem;
  font-size: 1.8rem;
  cursor: pointer;
}
.nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 1.5rem;
}
.nav-link {
  font-weight: var(--font-black);
  transition: 0.4s;
}
.nav-link:hover {
  color: var(--text-color);
}

/* 显示菜单 */
.show-menu {
  top: 0;
}

.scroll-header {
  background: var(--container-color);
}

.active-link {
  position: relative;
}
.active-link::before {
  position: absolute;
  content: "";
  left: 45%;
  bottom: -0.75rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--title-color);
}